package com.shop.cloud.domain.hongfu;

import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shop.cloud.common.mybatis.BaseEntity;

/**
 * 
 * goods_product-
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class GoodsProduct extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 商品Id
	 */
	@ApiModelProperty(value = "商品Id")
	 private Long goodsId;
	/**
	 * 价格
	 */
	@ApiModelProperty(value = "价格")
	 private Float price;
	/**
	 * Sku规格值  json
	 */
	@ApiModelProperty(value = "Sku规格值  json")
	 private String specs;
	
	
	@ApiModelProperty(value = "Sku规格值  json")
	 private List<ProductSpec> specsList;
	/**
	 * 成本
	 */
	@ApiModelProperty(value = "成本")
	 private Float cost;
	/**
	 * 库存预警值
	 */
	@ApiModelProperty(value = "库存预警值")
	 private Integer warnStock;
	/**
	 * 市场价
	 */
	@ApiModelProperty(value = "市场价")
	 private Float marketPrice;
	/**
	 * 已售销量
	 */
	@ApiModelProperty(value = "已售销量")
	 private Long soldVolume;
	/**
	 * 库存
	 */
	@ApiModelProperty(value = "库存")
	 private Long stock;
    
    public GoodsProduct(){
    
    }
    
    public Long getGoodsId() {
        return this.goodsId;
    }
    
    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }
    public Float getPrice() {
        return this.price;
    }
    
    public void setPrice(Float price) {
        this.price = price;
    }

	/**
	 * @return the specs
	 */
	public String getSpecs() {
		return specs;
	}

	/**
	 * @param specs the specs to set
	 */
	public void setSpecs(String specs) {
		this.specs = specs;
	}

	/**
	 * @return the specsList
	 */
	public List<ProductSpec> getSpecsList() {
		return specsList;
	}

	/**
	 * @param specsList the specsList to set
	 */
	public void setSpecsList(List<ProductSpec> specsList) {
		this.specsList = specsList;
	}

	public Float getCost() {
        return this.cost;
    }
    
    public void setCost(Float cost) {
        this.cost = cost;
    }
    public Integer getWarnStock() {
        return this.warnStock;
    }
    
    public void setWarnStock(Integer warnStock) {
        this.warnStock = warnStock;
    }
    public Float getMarketPrice() {
        return this.marketPrice;
    }
    
    public void setMarketPrice(Float marketPrice) {
        this.marketPrice = marketPrice;
    }
    public Long getSoldVolume() {
        return this.soldVolume;
    }
    
    public void setSoldVolume(Long soldVolume) {
        this.soldVolume = soldVolume;
    }
    public Long getStock() {
        return this.stock;
    }
    
    public void setStock(Long stock) {
        this.stock = stock;
    }

}